<template>
  <svg class="svg-class" :class="svgClassName">
    <use :href="svgIcon"></use>
  </svg>
</template>

<script setup>
import { ref, computed } from 'vue'
const props = defineProps({
  iconName: {
    type: String,
    default: '',
  },
  className: {
    type: String,
    default: '',
  },
})
const svgClassName = ref(props.className)
const svgIcon = computed(() => `#${props.iconName}`)
</script>